﻿#ifndef FILESTREAM_H
#define FILESTREAM_H
#include "Stream.h"

class FileStream:public Stream
{
public:
    FileStream();
    virtual ~FileStream(){};
    virtual char Read(int number)
    {
        cout<<"this is FileStream Read!!"<<endl;
        return number;
    };//读取
    virtual void Seek(int position)
    {
        cout<<"this is FileStream Seek!!"<<endl;
    };//寻找，定位
    virtual void Write(char data)
    {
        cout<<"this is FileStream Write!!"<<endl;
    };//写入
};

#endif // FILESTREAM_H
